package com.woniuxy.hotel.room.service.imp;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.woniuxy.hotel.room.mapper.ImgMapper;
import com.woniuxy.hotel.room.pojo.Img;
import com.woniuxy.hotel.room.service.ImgsService;

@Service
public class ImgsServiceImp implements ImgsService{
	@Autowired
	private ImgMapper imgMapper;
	/*查看酒店照片
	 * */
	@Override
	public List<Img> findHotelImgs(int hotelid) {
		
		return imgMapper.selectByHotelId(hotelid);
	}
	/*查看房间照片
	 * */
	@Override
	public List<Img> findRoomImgs(int roomid) {
		return imgMapper.selectByRoomlId(roomid);
		//注意Mapper是否更改
	}
	
	
}
